/**
 * 作者: wgx
 * 日期: 2024-12-03 10:03:43
 * 备注: 物资争夺战斗奖励贸易币
 */
package com.motu.monstercity.server.game.commondata.fight;

import io.vertx.core.json.JsonObject;

public class SnatchFightRewardModel {
    protected int id; // id
    protected int koNumMin; // 击败的干员数量起始
    protected int koNumMax; // 击败的干员数量结束
    protected int baseNum; // 单个干员获得的贸易币数量

    public SnatchFightRewardModel() {
    }

    public SnatchFightRewardModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        koNumMin = obj.containsKey("ko_num_min") ? obj.getInteger("ko_num_min") : 0;
        koNumMax = obj.containsKey("ko_num_max") ? obj.getInteger("ko_num_max") : 0;
        baseNum = obj.containsKey("base_num") ? obj.getInteger("base_num") : 0;
    }

    public int getId() {
        return id;
    }

    public int getKoNumMin() {
        return koNumMin;
    }

    public int getKoNumMax() {
        return koNumMax;
    }

    public int getBaseNum() {
        return baseNum;
    }

}
